<template>
  <div>
    <div class="title">
      周末游
    </div>
    <ul>
        <li class="item" v-for="myitem in list" :key="myitem.id">
            <div class="img-wrapper"> 
               <img class="item-img" :src="myitem.imgUrl">
            </div>
            <div class="item-info">
                <p class="item-title">{{myitem.title}}</p>
                <p class="item-desc">{{myitem.desc}}</p>
            </div>
        </li>
    </ul>
  </div>
</template>
<script>
export default {
  name: "HomeWeekend",
  props:{
    list:Array
  }
};
</script>
<style lang="stylus" scoped>
.title
  line-height: 0.8rem;
  text-indent: 0.2rem;
  background: #eee;
  margin-top: 0.2rem;
.img-wrapper
    overflow:hidden
    height:0
    padding-bottom:37%
    .item-img
        width:100%
.item-info
    padding:.2rem
    .item-title
        line-height:.5rem
        font-size:.32rem
    .item-desc
        color: #4e5743
        line-height: .4rem
</style>
